<h2 class="contentTitle">Edit Competition: <TMPL_VAR NAME=COMPETITION_NAME></h2>

<fieldset>
<table class="contentTable">
<tr>
<td class="label">Season:</td>
<td colspan=2><select name="FK_SEASON_ID"><TMPL_VAR NAME=SEASON_SEASON_OPTIONS></select><br/>
<small><a href="javascript:editObject('<TMPL_VAR NAME=SEASON_PK_OBJECT_ID>','SEASON')">Edit</a></small></td>
</tr>
<tr>
<td class="label">Competition:</td>
<td><input type=text name=COMPETITION_NAME value="<TMPL_VAR NAME=COMPETITION_NAME>" size=80>
<input type=hidden name="FK_COMPETITION_ID" value="<TMPL_VAR NAME=PK_OBJECT_ID>"></td>
</tr>
<tr>
<td class="label">Icon:</td>
<td><input type=text name=COMPETITION_ICON value="<TMPL_VAR NAME=COMPETITION_ICON>" size=80>
<img src="<TMPL_VAR NAME=COMPETITION_ICON>"></td>
</tr>
<tr>
<td class="label">Statistics Type:</td>
<td><select name=COMPETITION_STATSTYPE><TMPL_VAR NAME=COMPETITION_STATSTYPE_OPTIONS></select><br>
<span class="instructions">The class of statistics that matches from this competition will contribute to.</span></td>
</tr>
<tr>
<td class="label">Statistics Group:</td>
<td><select name="FK_STATSGROUP_ID"><TMPL_VAR NAME=STATSGROUP_STATSGROUP_OPTIONS></select><br>
<small>The group of statistics that matches from this competition will contribute to.</small><br>
<input type=button class="button" onClick="editObject('<TMPL_VAR NAME=FK_STATSGROUP_ID>','STATSGROUP');" value="Edit">
<input type=button class="button" onClick="addObject('STATSGROUP','<TMPL_VAR NAME=PK_OBJECT_ID>');" value="Add Stats Group">
</td>
</tr>
<tr>
<td class="label">Competition Notes:</td>
<td><textarea rows=10 cols=90 name="COMPETITION_NOTES"><TMPL_VAR NAME=COMPETITION_NOTES></textarea>
<TMPL_VAR NAME=_OBJECT_UPDATE_ERROR_COMPETITION_NOTES_><br>
<small>Notes regarding the rules of this competition etc.</small></td>
</tr>
</table>
<div class="submit">
<input type=button class="button" onClick="updateObject('COMPETITION','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>','Competition.Edit');" value="Update &raquo;">
</div>

<h3 class="contentSubTitle">Matches</h3>
<table class="contentTable">
<tr>
<th>KO:</th>
<th>Match:</th>
<th>Venue:</th>
<th>Result:</th>
<th>&nbsp;</th>
</tr>
<TMPL_VAR NAME=COMPETITION_MATCHSTATS>
</table>
<div class="submit">
<input type=button class="button" onClick="addObject('MATCHSTATS','<TMPL_VAR NAME=o>')" value="Add Match &raquo;">
</div>

<h3 class="contentSubTitle">Tables</h3>
<table class="contentTable">
<TMPL_VAR NAME=COMPETITION_LTABLES>
</table>
<div class="submit">
<input type=button class="button" onClick="addObject('LTABLE','<TMPL_VAR NAME=o>')"; value="Add Table &raquo;">
</div>

</fieldset>
<TMPL_VAR NAME=OBJECTS> 